import { BaseQuery } from "@/types/common/response";

/**
 * 供应商查询对象
 */
export interface SupplierQuery extends BaseQuery {
  supplierName?: string;
  supplierCode?: string;
  contactName?: string;
  status?: string;
}

/**
 * 供应商视图对象
 */
export interface SupplierVO {
  supplierId?: number;
  supplierName: string;
  supplierCode: string;
  contactName?: string;
  contactPhone?: string;
  contactEmail?: string;
  address?: string;
  status: string;
  createTime?: string;
  updateTime?: string;
  remark?: string;
}

/**
 * 供应商表单对象
 */
export interface SupplierForm {
  supplierName: string;
  supplierCode: string;
  contactName?: string;
  contactPhone?: string;
  contactEmail?: string;
  address?: string;
  status: string;
  remark?: string;
}

/**
 * 供应商请求对象
 */
export interface SupplierRequest extends SupplierForm {
  supplierId?: number;
}
